import './assets/main.scss'

import { createApp } from 'vue'
import App from './App.vue'

import router from '@/router/index.js'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//创建pinia的函数
import   {createPinia} from 'pinia'
import {createPersistedState} from 'pinia-persistedstate-plugin'
const  pinia=createPinia()

const  persist=createPersistedState();

const app = createApp(App)

//pinia 使用持久化插件 app再使用pinia
pinia.use(persist)
app.use(router)
app.use(pinia)
app.use(ElementPlus)
app.mount('#app')
